/**
 * 学校列表
 */
import React, { useEffect, useState } from 'react';
import Query from '@src/components/QueryTools';
import { fields } from "./setting"
import TableCompon from './components/TableCompon';
import SearchDom from '@src/components/Search';

const SchoolCompon = (props) => {

    const dataSource = () => {
        let data = []
        for (let i = 0; i < 66; i++) {
            data.push(
                {
                    key: i,
                    schoolNname: '武汉理工大学' + i,
                    faculty: '计算机信息学院',
                    major: '软件工程专业'
                }
            )
        }
        return data
    }

    const commit = () => { }

    const handleChange = () => { }

    const changePage = (e) => {
        console.log(e);
    }

    return (
        <>
            <Query fields={fields} commit={commit} change={handleChange}></Query>
            {/* <SearchDom searchList={fields} submitSearch={commit} /> */}
            <TableCompon dataSource={dataSource()} change={changePage} />
        </>
    )
}

export default SchoolCompon